package org.example.casemodule.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

import java.lang.Long;
import java.util.Date;
import java.lang.String;
import java.lang.Integer;

/**
 * 评价表 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Table(value = "evaluation",dataSource = "caseDS")
public class EvaluationEntity {

    /**
     * 评价ID
     */
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 关联案件ID
     */
    @Column(value = "case_id")
    private Long caseId;

    /**
     * 评价用户ID
     */
    @Column(value = "user_id")
    private Long userId;

    /**
     * 被评价律师ID
     */
    @Column(value = "lawyer_id")
    private Long lawyerId;

    /**
     * 评分(1-5)
     */
    @Column(value = "rating")
    private Integer rating;

    /**
     * 评价内容
     */
    @Column(value = "content")
    private String content;

    /**
     * 评价时间
     */
    @Column(value = "evaluate_time")
    private Date evaluateTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCaseId() {
        return caseId;
    }

    public void setCaseId(Long caseId) {
        this.caseId = caseId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getLawyerId() {
        return lawyerId;
    }

    public void setLawyerId(Long lawyerId) {
        this.lawyerId = lawyerId;
    }

    public Integer getRating() {
        return rating;
    }

    public void setRating(Integer rating) {
        this.rating = rating;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getEvaluateTime() {
        return evaluateTime;
    }

    public void setEvaluateTime(Date evaluateTime) {
        this.evaluateTime = evaluateTime;
    }
}
